package com.ddzh.clients.fallback;

import com.ddzh.clients.UserFeignApi;
import com.ddzh.pojo.User;

/**
 * 这里编写我们的降级处理逻辑
 */
public class UserFeignApiFallBack implements UserFeignApi {
    @Override
    public User queryById(String username) {
        User user = new User();
        user.setName(username);
        user.setNickName("UserFeignApiFallBack");

        return user;
    }
}
